package com.nbjtjc.safe.mapper.emg.handle;

import com.nbjtjc.safe.model.emg.handle.EmgHandleGoods;
import com.nbjtjc.util.MyMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EmgHandleGoodsMapper extends MyMapper<EmgHandleGoods> {

    @Select("select * from emg_handle_goods where handle_id=#{handleId}")
    List<EmgHandleGoods> findByHandleId(@Param("handleId") int handleId);
    @Delete("delete  from emg_handle_goods where handle_id=#{handleId}")
    int deleteByHandleId(@Param("handleId")int handleId);
}